package com.jugheadzhou.emrpoc.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.jugheadzhou.emrpoc.mybatis.UUIdGenId;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * 
 * @author jugheadzhou
 * @date 2021-10-24 21:52:36
 */ 
@Data
public class MedicalRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@KeySql(genId = UUIdGenId.class)
	private String id;
	/** 病人就诊卡号（标识病的一次完整就诊过程的ID） */
	@Column(name = "visitCardNo")
	private String visitCardNo;
	/** 患者姓名 */
	@Column(name = "patientName")
	private String patientName;
	/** 病历记录类型 */
	private String type;
	/** 病历记录名称 */
	private String name;
	/** 病历记录模板Id(已发布) */
	@Column(name = "templateId")
	private String templateId;
	/** 病历记录实例编号 */
	@Column(name = "serialNumber")
	private String serialNumber;
	/** 部门 */
	private String department;
	/** 创建人 */
	@Column(name = "createdBy")
	private String createdBy;
	/** 创建时间 */
	@Column(name = "createTime")
	private LocalDateTime createTime;
	/** 完成状态（0-未完成，1-已完成） */
	private Integer published = 0;

}

